<%-- 
    Document   : askQuestion
    Created on : 28-nov-2012, 18:05:14
    Author     : Marco
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

        <c:choose>
            <c:when test="${userLevel == null}">
                <%@include file="errorPage.jsp"%>
            </c:when><c:otherwise>
        <c:if test="${error == true}">
            <!-- Mochten er foutmeldingen zijn, dan worden ze hier getoond -->
            <p><a style="color:#FF0000">${inhoud.askQuestionE}</a></p>
        </c:if>
        <c:choose>
            <c:when test="${errorMessage == true}">
                <p><a style="color:#FF0000">${inhoud.askQuestionLengthE}</a></p>
            </c:when>
        </c:choose>
                <c:choose>
            <c:when test="${succesvol == true}">
                <p>${inhoud.askQuestionS}</p>
            </c:when>
        </c:choose>
        <form id="askQuestionForm" method="post" action="askQuestion">
            ${inhoud.askQuestionT} <br>
            <input type="text" name="question"/> <input type="button" value="${inhoud.askQuestionB}" onclick="submitForm('askQuestionForm','askQuestion');">
        </form>
            </c:otherwise></c:choose>